FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD docker.app-1.0-SNAPSHOT.jar app.jar
RUN sh -c 'touch /app.jar'
# 映射 container:8080到主机的18080，通过host:18080访问应用
EXPOSE 8080
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]